iommu: make use of type-safe DFN and MFN in exported functions
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 5 Oct 2018 14:16:13 +0000 (16:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Oct 2018 14:16:13 +0000 (16:16 +0200)
commitc771f27518e39f707cec799bcf9beaf06d32d7ed
treefe82147625783d32990223d790b0d5a89b6ff2e9
parentcc6e309c6e4368a1094b5e7593cf8cf5803ed709
iommu: make use of type-safe DFN and MFN in exported functions

This patch modifies the declaration of the entry points to the IOMMU
sub-system to use dfn_t and mfn_t in place of unsigned long. A subsequent
patch will similarly modify the methods in the iommu_ops structure.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
12 files changed:
xen/arch/arm/p2m.c
xen/arch/x86/mm.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/x86_64/mm.c
xen/common/grant_table.c
xen/common/memory.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/x86/vtd.c
xen/drivers/passthrough/x86/iommu.c
xen/include/xen/iommu.h